<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('banner/index')}">Banner列表</a></li>
			<li><a href="{:U('banner/add')}">添加Banner</a></li>
		</ul>
		<!--<form class="well form-search" method="post" action="{:U('banner/index')}">-->
			<!--Banner名称:-->
			<!--<input type="text" name="name" style="width: 100px;" value="{:I('request.name/s','')}" placeholder="请输入Banner名称">-->
			<!--<input type="submit" class="btn btn-primary" value="搜索" />-->
			<!--<a class="btn btn-danger" href="{:U('banner/index')}">清空</a>-->
		<!--</form>-->
		<form method="post" class="js-ajax-form" action="{:U('banner/listorders')}">
			<div class="table-actions">
				<button type="submit" class="btn btn-primary btn-small js-ajax-submit">{:L('SORT')}</button>
			</div>
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="50">{:L('SORT')}</th>
						<th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
						<th width="10">ID</th>
						<th width="35">名称</th>
						<th width="25">所在位置</th>
						<th width="45">创建时间</th>
						<th width="120">{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="banners" item="vo">
					<tr>
						<td><input name='listorders[{$vo.id}]' type='text' size='3' value='{$vo.listorder}' class='input input-order'></td>
						<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}"></td>
						<td>{$vo.id}</td>
						<td>{$vo.name}</td>
						<td>{$vo.cfname}Banner</td>
						<td>{$vo.create_time}</td>
						<td>
							<a href="{:U('banner/edit',array('id'=>$vo['id'],'p'=>$p))}">{:L('EDIT')}</a> |
							<a href="{:U('banner/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a> 
						</td>
					</tr>
					</foreach>
				</tbody>
				<tfoot>
				<tr>
					<th width="50">{:L('SORT')}</th>
					<th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
					<th width="10">ID</th>
					<th width="35">名称</th>
					<th width="25">所属分类</th>
					<th width="45">创建时间</th>
					<th width="120">{:L('ACTIONS')}</th>
				</tr>
				</tfoot>
			</table>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>